package com.castle.fortress.admin.study.exam.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 试卷题目管理 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
@ApiModel(value = "studyExamQuestion对象", description = "试卷题目管理")
public class StudyExamQuestionDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	@JsonProperty("id")
	private Long id;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "试卷ID")
	@JsonProperty("examId")
	private Long examId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "所属题库ID")
	@JsonProperty("qbId")
	private Long qbId;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "题目ID")
	@JsonProperty("questionId")
	private Long questionId;
	@ApiModelProperty(value = "题目类型(单选题/多选题)")
	@JsonProperty("questionType")
	private String questionType;
	@ApiModelProperty(value = "标题")
	@JsonProperty("title")
	private String title;
	@ApiModelProperty(value = "标题附图")
	@JsonProperty("titleImg")
	private String titleImg;
	@ApiModelProperty(value = "标题音频")
	@JsonProperty("titleMp3")
	private String titleMp3;
	@ApiModelProperty(value = "选项类型(文字/图文)")
	@JsonProperty("optionType")
	private String optionType;
	@ApiModelProperty(value = "题目解析")
	@JsonProperty("analysis")
	private String analysis;
	@ApiModelProperty(value = "排序")
	@JsonProperty("sort")
	private Integer sort;
	@ApiModelProperty(value = "答案")
	@JsonProperty("answer")
	private String answer;
	@ApiModelProperty(value = "选项A内容")
	@JsonProperty("answerA")
	private String answerA;
	@ApiModelProperty(value = "选项B内容")
	@JsonProperty("answerB")
	private String answerB;
	@ApiModelProperty(value = "选项C内容")
	@JsonProperty("answerC")
	private String answerC;
	@ApiModelProperty(value = "选项D内容")
	@JsonProperty("answerD")
	private String answerD;
	@ApiModelProperty(value = "选项E内容")
	@JsonProperty("answerE")
	private String answerE;
	@ApiModelProperty(value = "选项F内容")
	@JsonProperty("answerF")
	private String answerF;
	@ApiModelProperty(value = "题目分值")
	private Integer score;
	@ApiModelProperty(value = "选项列表,用于前端展示")
	private List<Map<String,Object>> optionsList;
	@ApiModelProperty(value = "选择的答案,用于前端展示")
	private String choiceAnswer;
}
